package com.lfl.springbootmybatis.service.impl;

import com.lfl.springbootmybatis.mapper.UserMapper;
import com.lfl.springbootmybatis.pojo.User;
import com.lfl.springbootmybatis.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 叶星痕
 * @data 2024/8/3 下午4:29
 * 文件名 : UserServiceImpl
 * 描述 :
 */

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User findById(Integer id) {
        return userMapper.findById(id);
    }
}

